// begin
package main

import (
	"errors"
	"fmt"
	"libs"
)

func main() {
	fmt.Println("Hello World!")
	fmt.Println("I am studying go and github")
<<<<<<< HEAD
	fmt.Println("this is a tag branch")
=======
	x := 100
	f := test(x)
	f()
	y := printx(x)
	println(y)
	printy(x)
	a, b := 10, 0
	c, err := div(a, b)
	fmt.Println(c, err)
	var u libs.User
	u.name = "Tom"
	u.age = 32
	var p libs.Printer = u
	p.Print()
}

func test(x int) func() {
	return func() {
		println(x)
	}
}

func printx(x int) int {
	return x + 1
}

func printy(y int) {
	fmt.Println(y)
}

func div(a, b int) (int, error) {
	if b == 0 {
		return 0, errors.New("Division divided by 0")
	}
	return a / b, nil
>>>>>>> rebase
}
